package com.github_Dididipapa.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github_Dididipapa.shortlink.admin.common.result.R;
import com.github_Dididipapa.shortlink.admin.dao.entity.User;
import com.github_Dididipapa.shortlink.admin.dto.req.UserLoginReqDTO;
import com.github_Dididipapa.shortlink.admin.dto.resp.UserLoginRespDTO;

import java.io.IOException;

/**
 * @description: To be defined
 * @author: dididi_papa
 * @email: mitis1624087624@gmail.com
 * @date: 2025/09/09  14:03
 */
public interface UserService extends IService<User> {
    R getUserByUsername(String username);

    R existUsername(String username);

    R registerUser(User user) throws IOException;


    UserLoginRespDTO login(UserLoginReqDTO user);

    Boolean checkLogin(String token, String usrername);

    Boolean logOut(String token, String usrername);
}
